
#################################################################################
function Show-ScriptUsage
{
  Log-Message $MajorLine
  Log-Message "Deploy -help"
  Log-Message "Deploy -help <env>"
  Log-Message "Deploy -all <env>"
  Log-Message "Deploy <env> <server>"
  Log-Message "Deploy <env> <server> <application>"
}

function ShowingHelp
{
  if ($help) 
  {
    if ($TargetEnv -eq "Unknown")
    {
      Show-AllEnv
    }
    else
    {
      $Env = Get-Env $TargetEnv
      Show-Env $Env
    }
    Show-ScriptUsage
    $true
    
    Return
  }

  if ($TargetEnv -eq "Unknown")
  {
    Show-ScriptUsage
    $true
    Return
  }
  
  $false
}